{% if board.bo_use_sideview %}
    {% import "/sideview/macros.html" as sideview %}
{% endif %}
<div class="lat">
    <h2 class="lat_title"><a href="{{ url_for('list_post', bo_table=bo_table) }}">{{ board.subject }}</a></h2>
    <ul>
        {% for write in writes -%}
        <li class="basic_li">
            {% if write.icon_secret -%}
                <i class="fa fa-lock" aria-hidden="true"></i>
                <span class="blind">秘密写作</span>
            {%- endif -%}
            <a href="{{ url_for('read_post', bo_table=bo_table, wr_id=write.wr_id) }}">
                {% if write.is_notice %}<strong>{{ write.subject }}</strong>{% else %}{{ write.subject }}{% endif %}
            </a>
            {% if write.icon_hot %}<span class="hot_icon"><i class="fa fa-heart" aria-hidden="true"></i><span class="blind">流行写作</span></span>{% endif %}
            {% if write.icon_new %}<span class="new_icon">N<span class="blind">新写作</span></span>{% endif %}
            {% if write.icon_file %}<span class="file_icon"><i class="fa fa-download" aria-hidden="true"></i><span class="blind">文件的附件</span></span>{% endif %}
            {% if write.icon_link %}<span class="link_icon"><i class="fa fa-link" aria-hidden="true"></i><span class="blind">链接</span></span>{% endif %}
            {% if write.icon_reply %}<span class="reply_icon"><i class="fa fa-regular fa-commenting" aria-hidden="true"></i><span class="blind">答案</span></span>{% endif %}
            {% if write.wr_comment %}<span class="lt_cmt"><span class="blind">评论</span>{{ write.wr_comment }}</span>{% endif %}
            <div class="lt_info">
                <span class="lt_nick">
                    {% if board.bo_use_sideview %}
                        {{ sideview.get(request, write.mb_id, write.name, write.wr_email, write.wr_homepage)|safe }}
                    {% else %}
                        <span class="{% if write.mb_id %}member{% else %}guest{% endif %}">
                            {{ write.name }}
                        </span>
                    {% endif %}
                </span>
                <span class="lt_date">{{ write.datetime }}</span>              
            </div>
        </li>
        {% else -%}
            <li class="empty_li">无帖子.</li>
        {%- endfor %}
    </ul>
    <a href="{{ url_for('list_post', bo_table=bo_table) }}" class="lt_more">
        <span class="blind">{{ board.subject }}</span>更多
    </a>
</div>
